/*
 * @Author       : wang chao
 * @Date         : 2023-10-11 08:39:37
 * @LastEditors: wangchao
 * @LastEditTime: 2024-08-29 13:00:24
 * @FilePath: \JD-RTT-Driver\sm_rtu\config_dev_rtu_mb.h
 * @Description  :
 * Copyright 2023 BingShan, All Rights Reserved.
 */
#ifndef __CONFIG_SMRTU_MODBUS_H__
#define __CONFIG_SMRTU_MODBUS_H__

/*
 *  RTTHREAD PORT
 */
#define SMRTU_MODBUS_RTTHREAD            1u
#define SMRTU_MODBUS_RTTHREAD_USE_DEVICE 1u
#define SMRTU_MODBUS_RTTHREAD_USE_SOCKET 0u

#if SMRTU_MODBUS_RTTHREAD
#include "dev_rtu_mb_port_rtthread.h"
#endif

#define RTU_MODBUS_CRC_BYTE_SWAP 0u

/*
 *  USER CONFIG
 */
#define SMRTU_SLAVE_ADDR        11u
#define SMRTU_UART_DEVICE_NAME  "uart1"
#define SMRTU_THREAD_STACK_SIZE 1024u
#define SMRTU_THREAD_PRIORITY   20u
#define SMRTU_THREAD_TICKS      15u
#endif /* __CONFIG_SMRTU_MODBUS_H__ */
